package com.gdkm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.gdkm.dao.YuDao;
import com.gdkm.po.Yu;
import com.gdkm.service.YuyueService;

@EnableTransactionManagement
@Service
public class YuyueServiceimpl implements YuyueService {
	@Autowired
    YuDao dao;
	
	@Override
	public void save1(String name, String type, String classess, String data) {
		// TODO Auto-generated method stub
		dao.save1(name,type,classess,data);
	}

	@Override
	public List<Yu> list2(int y, int ge) {
		// TODO Auto-generated method stub
		return dao.list2(y, ge);
	}

	@Override
	public List<Yu> list3(String name, String classess,int y, int ge) {
		// TODO Auto-generated method stub
		return dao.list3(name, classess,y, ge);
	}

	@Override
	public void delete1(int id) {
		// TODO Auto-generated method stub
		dao.delete1(id);
	}

	@Override
	public void update(Yu stu) {
		// TODO Auto-generated method stub
		dao.update(stu);
	}

	@Override
	public List<Yu> list4(String name) {
		// TODO Auto-generated method stub
		return dao.list4(name);
	}

}
